/**
 * Project Name:Micro-Services-Toolkit-Client
 * File Name   :CuratorFrameworkInstrument.java
 * Package Name:com.micro.services.toolkit.client
 * Date:2015-9-6下午3:57:59
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
*/
/**
 *  {{Code Template Comments Files}}
 */

package com.micro.services.toolkit.client;

import org.apache.curator.framework.CuratorFramework;

/**
 * ClassName:CuratorFrameworkInstrument <br/>
 * Function :TODO ADD FUNCTION. <br/>
 * Reason	:TODO ADD REASON. <br/>
 * Date     :2015-9-6 下午3:57:59 <br/>
 * @author  :http://my.oschina.net/httpssl
 * @email   :491835898@QQ.COM
 * @since   :JDK 1.7
 * @see 	 
 */
public interface CuratorFrameworkClientToolkit
{

	/**
	 * ip1:port,ip2:port
	 * @return
	 */
	public String getZkHost();
	
	public String getAppName();
	
	public String getNameSpace();
	
	public int getConnectionTimeoutMs();
	
	public int getSessionTimeoutMs();
	
	public int getMaxRetryTimes();
	
	public CuratorFramework buildZkClient()throws Exception;
	
	public CuratorFramework getZkClient() throws Exception;
	
	public void startZkClient()throws Exception;
	
	public void destroyZkClient()throws Exception;
	
}